package org.dromara.crawler.mongo.mongoservice;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mongoplus.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.crawler.domain.bo.DataCollectionBo;
import org.dromara.crawler.domain.vo.DataSource;
import org.dromara.crawler.mongo.mongodomain.XinHuaNet;


import java.util.List;
import java.util.Map;

public interface XinHuaNetService extends IService<XinHuaNet> {

    List<XinHuaNet> queryByLabelAndKeyword(String label,String keyword);


    List<XinHuaNet> getAll();


    List<XinHuaNet> queryXinHuaByLabel(String label);

    IPage<DataSource> queryByPage(DataCollectionBo dataCollectionBo, PageQuery pageQuery);

    XinHuaNet queryById(String id);



    Long getTotalByCNN_XinHuaNet_Wiki();

    Long countAll(KnowledgeTargetService knowledgeTargetService);

    Long countAll(KnowledgeEventService knowledgeEventService);

    Long getHotspotEventCount();
//重载
    Map<String, Long> getCombinedStats(KnowledgeTargetService knowledgeTargetService,KnowledgeEventService knowledgeEventService);
    Map<String, Long> getCombinedStats(KnowledgeTargetService knowledgeTargetService,KnowledgeEventService knowledgeEventService,String keyword);

    Map<String, Long> getMonthlyStats();

//重载
    Object getMonthStatistics();
    Object getMonthStatistics(String keyword);




}
